﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Key"] != null && Session["CustomerId"] != null)
        {
           DL.Visible = false;
           ZC.Visible = false;
           if (Session["Key"].ToString().Trim() == "2" || Session["Key"].ToString().Trim() =="3")
            {
                LinkButton8.Visible = true;
                LinkButton7.Visible = true;
            }
            if (Session["Key"].ToString().Trim() == "3")
            {
                LinkButton9.Visible = true;
                LinkButton12.Visible = true;
            }
        }

    }

    protected void lnkbtnLogout_Click(object sender, EventArgs e)
    {
        Session.Clear();
        Response.Redirect("~/Default.aspx");
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["spm"] = TextBox1.Text.Trim();
        Response.Redirect("~/sssp.aspx");
    }
}
